home *** CD-ROM | disk | FTP | other *** search
- #pragma once
-
- // Author: Matthew E. Axsom
- // Version: 1.0 - 12/08/94
- // Description: A C++ class for writing cotrol panel's
-
- struct cdevObj {
- short lastItem; // last system item in control panel.
-
- DialogPtr d; // control panel dialog box
- EventRecord *e; // event
-
- cdevObj(short numItems,DialogPtr cp);
- virtual ~cdevObj(void);
-
- // processes all events 'cept macDev,initDev,closeDev
- long actions(short message,short itemHit);
- long commandKey(void); // handles command key's for non sys7 machines
-
- // you'll need to override these methods w/your own.
- virtual long hit(short itemHit); // handles a mouse hit in the control panel
- virtual long idle(void); // handling of nulDev message
- virtual long update(void); // update user items
- virtual long activate(void); // activate user items
- virtual long deactivate(void); // deactivate user items
- virtual long keyDown(void); // key down was pressed
- virtual long undo(void); // undo from edit menu or cmd-z
- virtual long cut(void); // cut from edit menu or cmd-x
- virtual long copy(void); // copy from edit menu or cmd-c
- virtual long paste(void); // paste from edit menu or cmd-v
- virtual long clear(void); // clear from edit menu
- };
-
-